

# Display dimensions
XPIXEL = 480
YPIXEL = 272
XMAX   = (XPIXEL - 1)
YMAX   = (YPIXEL - 1)

# Control character
ESC = chr(27)
CR = chr(13)
LF = chr(10)
FF = chr(12)

MAX_STRING = 48

ACK = 0x06
NAK = 0x15
DC1 = 0x11
DC2 = 0x12

# Orientation
W0   = 0
W90  = 1
W180 = 2
W270 = 3

# Colour constants
TRANSPARENT = 0
BLACK       = 1
BLUE        = 2
RED         = 3
GREEN       = 4
MAGENTA     = 5
CYAN        = 6
YELLOW      = 7
WHITE       = 8
NOCHANGE    = 255

# Constants for animations
NONE         = 0
ONCE         = 1
CYCLIC       = 2
PINGPONG     = 3
ONCEBACK     = 4
CYCLICBACK   = 5
PINGPONGBACK = 6
TOFRAME      = 7
DEFAULTTIME  = 255

# Fonts (standardfonts)
FONT4x6   = 1
FONT6x8   = 2
FONT7x12  = 3
GENEVA10  = 4
CHICAGO14 = 5
SWISS30B  = 6
BIGZIF50  = 7
BIGZIF100 = 8